// import { upperLodashToCamel } from "utils/common";
import { addColumnEllipsis, dateRender } from "utils/common";
const columnWidth = 80;

let columns = [
  {
    dataIndex: "id",
    title: "ID",
    align: 'center',
    width: 50
  },
  {
    dataIndex: "name",
    title: "鱼缸名称"
  },{
    dataIndex: "code",
    title: "鱼缸编码"
  },
  {
    dataIndex: "username",
    title: "会员昵称"
  },
  {
    dataIndex: "mobile",
    title: "会员电话",
    width: 120,
    align: "center"
  },
  {
    dataIndex: "fishNum",
    title: "鱼的数量",
    width: 100,
    align: "center"
  },
  {
    dataIndex: 'img',
    title: '图片',
    width: 100,
    scopedSlots: {customRender: 'img'},
    align: 'center'
  },
  {
    dataIndex: "createTime",
    title: "创建时间",
    width: 140,
    align: "center"
  },
  {
    dataIndex: "modifyTime",
    title: "变更时间",
    width: 140,
    align: "center"
  },
  {
    dataIndex: "operation",
    title: "操作",
    width: 120,
    align: "center",
    scopedSlots: { customRender: "operation" }
  }
];
/* columns.map(val => {
  val.dataIndex = upperLodashToCamel(val.dataIndex);
}); */

columns = addColumnEllipsis(columns);
export default columns;
